package pta;/**
 * @author： li
 * @date： 2022-04-03 12:33
 * @version 1.0
 */
import java.io.*;
public class 寻找250 {
    static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        String[] a =in.readLine().split(" ");
        for(int i=0;i<a.length;i++)
        {
            if(a[i].equals("250")){
                System.out.println(i+1);
                break;
            }
        }
    }
}
